home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / sharew / spiele / denker / gnuchess.gem / src / makefile < prev    next >
Encoding:
Makefile  |  1995-08-15  |  2.2 KB  |  69 lines

  1. #
  2. # Makefile for CHESS
  3. #
  4. # Copyright (C) 1986, 1987, 1988, 1989, 1990 Free Software Foundation, Inc.
  5. #
  6. # This file is part of CHESS.
  7. #
  8. # CHESS is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY.  No author or distributor
  10. # accepts responsibility to anyone for the consequences of using it
  11. # or for whether it serves any particular purpose or works at all,
  12. # unless he says so in writing.  Refer to the CHESS General Public
  13. # License for full details.
  14. #
  15. # Everyone is granted permission to copy, modify and redistribute
  16. # CHESS, but only under the conditions described in the
  17. # CHESS General Public License.   A copy of this license is
  18. # supposed to have been given to you along with CHESS so you
  19. # can know your rights and responsibilities.  It should be in a
  20. # file named COPYING.  Among other things, the copyright notice
  21. # and this notice must be preserved on all copies.
  22. #
  23. # gnuchess.prg  will be the Atari GEM-based chess.
  24. #
  25. # If you want to use the persistent transpositon table add
  26. # -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
  27. # to the gnuchess.o compilation line. You also have to run gnuchess -t
  28. # To actually create the file. -t can also be used to report
  29. # statistics about the file or to resize it.
  30. #
  31. #TEMP=D:/tmp
  32. #TMP=D:/tmp
  33. #TMPDIR=D:/tmp
  34. VERS=    3.1
  35. BINDIR= /usr/gnu/bin
  36. LIBDIR= /usr/gnu/lib
  37. LCURSES=-lcurses -ltermcap
  38. HASH=-DHASHFILE=$(LIBDIR)/gnuchess.hash
  39. BOOK=-DBOOK=$(LIBDIR)/gnuchess.book
  40. CC=gcc -W
  41. CCC=gcc
  42. ##CXXFLAGS= -O2 -W -I/usr/gnuchess/src -DDESPERATE_FOR_RAM
  43. CXXFLAGS= -W -I/usr/gnuchess/src -DDESPERATE_FOR_RAM
  44. #CXXFLAGS=    -W -O2
  45. LDFLAGS=-s
  46. LDLIBS=-lgem++ -lg++ -lgem
  47.  
  48. LDLIBES=/usr/gnuchess/src/gnuchess.olb
  49. LDLIBES512=/usr/gnuchess/src/gc_tiny.olb
  50. ATARIGEMSRC=gemgui.cc popupch.cc popcolor.cc poppattn.cc
  51. ATARIGEMOBJ=$(subst .cc,.o,$(ATARIGEMSRC))
  52.  
  53. all : ../gnuchess.prg ../gc_512k.prg
  54.  
  55. ../gnuchess.prg: $(ATARIGEMOBJ) interact.o $(LDLIBES)
  56.     $(CCC) $(LDFLAGS) $(ATARIGEMOBJ) interact.o $(LDLIBES) -lgem++ -lg++ -lgem -o ../gnuchess.prg
  57.  
  58. ../gc_512k.prg: $(ATARIGEMOBJ) interact.o $(LDLIBES512)
  59.     $(CCC) $(LDFLAGS) $(ATARIGEMOBJ) interact.o $(LDLIBES512) -lgem++ -lg++ -lgem -o ../gc_512k.prg
  60.  
  61. gnuchess.o: gnuchess.cc
  62.  
  63. interact.o: interact.cc
  64.  
  65. depend:
  66.     $(CCC) $(CXXFLAGS) -MM $(ATARIGEMSRC) >depends
  67.  
  68. include depends
  69.